package com.woniuxy.light_smart.mapper;

import com.woniuxy.light_smart.dto.UserDto;
import com.woniuxy.light_smart.entity.UserRole;

import java.util.List;

/**
* @author asus
* @description 针对表【user_role】的数据库操作Mapper
* @createDate 2022-12-06 15:45:42
* @Entity com.woniuxy.light_smart.entity.UserRole
*/
public interface UserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    int deleteRidByUid(Long id);

    void saveRoleByUser(Long uid,Object[] rids);
}
